package com.yu.mail.starter.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 邮件属性
 * @author yuhh
 * @date 2021/5/24 17:17
 */
@ConfigurationProperties(prefix = "mail.service")
public class MailProperties {

    /** 邮件主机 */
    private String mailHost;
    /** 邮件主机端口 */
    private Integer mailPort;
    /** 邮件主机用户名 */
    private String mailUserName;
    /** 邮件主机授权码 */
    private String mailPassword;
    /** 发件方邮箱 */
    private String mailEmailFrom;
    /** 邮件发送超时时间 */
    private String mailTimeout;
    /** 邮件发送方昵称 */
    private String mailPersonal;
    /** 是否发送 */
    private Boolean isSend;
    /** 收件人 */
    private String sendEmail;

    public String getMailHost() {
        return mailHost;
    }

    public void setMailHost(String mailHost) {
        this.mailHost = mailHost;
    }

    public Integer getMailPort() {
        return mailPort;
    }

    public void setMailPort(Integer mailPort) {
        this.mailPort = mailPort;
    }

    public String getMailUserName() {
        return mailUserName;
    }

    public void setMailUserName(String mailUserName) {
        this.mailUserName = mailUserName;
    }

    public String getMailPassword() {
        return mailPassword;
    }

    public void setMailPassword(String mailPassword) {
        this.mailPassword = mailPassword;
    }

    public String getMailEmailFrom() {
        return mailEmailFrom;
    }

    public void setMailEmailFrom(String mailEmailFrom) {
        this.mailEmailFrom = mailEmailFrom;
    }

    public String getMailTimeout() {
        return mailTimeout;
    }

    public void setMailTimeout(String mailTimeout) {
        this.mailTimeout = mailTimeout;
    }

    public String getMailPersonal() {
        return mailPersonal;
    }

    public void setMailPersonal(String mailPersonal) {
        this.mailPersonal = mailPersonal;
    }

    public Boolean getSend() {
        return isSend;
    }

    public void setSend(Boolean send) {
        isSend = send;
    }

    public String getSendEmail() {
        return sendEmail;
    }

    public void setSendEmail(String sendEmail) {
        this.sendEmail = sendEmail;
    }
}
